package com.yanq.liancar.adapter;
/*
 *  @创建者     Administrator
 *  @创建时间   2018/11/16  11:37
 *  @描述       ${TODO}
 */


import android.os.Build;
import android.support.annotation.Nullable;
import android.support.annotation.RequiresApi;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.yanq.liancar.R;
import com.yanq.liancar.bean.CheXiBean;
import com.yanq.liancar.bean.ChexingBean;

import java.util.List;
import java.util.Random;

public class CarCheXingAdapter extends BaseQuickAdapter<ChexingBean.DataBean, BaseViewHolder> {
    public CarCheXingAdapter(int layoutResId, @Nullable List<ChexingBean.DataBean> data) {
        super(layoutResId, data);
    }

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    protected void convert(BaseViewHolder helper, ChexingBean.DataBean item) {
        helper.setText(R.id.brand_name,item.getCar_model());
    }
}
